//
//  ZFJPopView.h
//  GSDemo
//
//  Created by ZhangFujie on 2022/10/12.
//

#import <UIKit/UIKit.h>
#import "ZFJPopManagerHeader.h"

@interface ZFJPopView : UIView

/// 动画类型
@property (nonatomic,assign) ZFJPopAnimateStyle animateStyle;

/// 视图将要出现
@property (nonatomic,  copy) ZFJPopVoidBlock viewWillAppear;

/// 视图已经出现
@property (nonatomic,  copy) ZFJPopVoidBlock viewDidAppear;

/// 视图将要消失
@property (nonatomic,  copy) ZFJPopVoidBlock viewWillDisappear;

/// 视图已经消失
@property (nonatomic,  copy) ZFJPopVoidBlock viewDidDisappear;

/// 禁止背景点击，默认NO，可以点击
/// NO:可以点击关闭界面
/// YES:不可以点击背景关闭界面
@property (nonatomic,assign) BOOL disableBackgroundClick;

/// 传入的弹出视图
@property (nonatomic,strong,readonly) UIView *popView;

/// 初始化弹窗动画视图
/// @param popView 自定义弹窗
/// @return self
- (instancetype)initWithPopView:(UIView *)popView;

/// 初始化弹窗动画视图
/// @param popView 自定义弹窗
/// @param topView 父视图
- (instancetype)initWithPopView:(UIView *)popView topView:(UIView *)topView;

/// 显示弹窗动画视图
- (void)showPopAnimationView;

/// 关闭弹窗动画视图
- (void)hidePopAnimationView;

@end
